#ifndef DEVICEMANAGER_H
#define DEVICEMANAGER_H

#include <QObject>
#include "controller/xdumper2.h"
#include "controller/checkmedevice.h"
#include <QStringList>

#define MAX_DEVICE_CONNECTED    (20)

class deviceManager : public QObject
{
    Q_OBJECT
public:
    explicit deviceManager(QObject *parent = 0);

    QList<checkmeDevice> getConnectList() const
    {
        return connectList;
    }

    void disconnectList();
    void downloadAllFile(checkmeDevice info, int index);

private:
    QList<checkmeDevice> connectList;
    QThread *thread;

signals:
    void hasNewConnect(QList<checkmeDevice>);

    void DbclickItem();
    void downloadInfo(QString DeviceName, int sum, int curIndex, QString curFileName, int FileSize, int FileCurPos);

public slots:
    void onRefreshDevice();
};


#endif // DEVICEMANAGER_H
